import Vue from 'vue';
import App from './App.vue';


Vue.config.productionTip = false;
const role = "admin";
Vue.directive("role",{
    bind(el,binding){
      console.log("bind",el,binding)
    },
    inserted(el,binding){
      console.log("inserted",el,binding)
      if(binding.value !== role){
        el.remove()
      }
    },
    update(el,binding){
      console.log("update",el,binding)
    },
    componentUpdated(el,binding){
      console.log("componentUpdate",el,binding)
    },
    unbind(el,binding){
      console.log("unbind",el,binding)
    }
})
new Vue({
  render: h => h(App),
}).$mount('#app')
